package com.quanyan.travel.api.req;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * Created by xiao.lai on 16/5/26.
 */
public class ReqSignUser implements Serializable {

    private static final long serialVersionUID = -260506608013713522L;

    @NotNull(message="活动id不能为空")
    private Integer id;

    @NotNull(message="主题类型不能为空")
    @Max(value = 1, message = "最大值必须是1")
    @Min(value= 0 ,message= "最小值必须是0！" )
    private Integer type;  //0、非主题活动；1、主题活动

    @NotNull
    private List productIds;  //type=0时,该值为空

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public List getProductIds() {
        return productIds;
    }

    public void setProductIds(List productIds) {
        this.productIds = productIds;
    }
}
